<template>
  <div v-show="message">
    <div class="message_body">
        <div class="message_flex">
            我是一条消息
        </div>
    </div>
  </div>
</template>

<script>

export default {
  data() {
    return {
      message: false,
    };
  },
};
</script>

<style lang="scss">
.message_body {
  width: 100%;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
.message_flex{
    width: 70%;
    height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 5px;
}
}
</style>